import request from '@/utils/request'

// 微信支付
export function wxPay(data) {
  return request({
    url: '/api/payment/wx_order_sync',
    method: 'POST',
    data,
  })
}

// H5支付
export function hPay() {
  return request({
    url: '/api/',
    method: 'POST',
  })
}

// 查询订单
export function payOrder(data) {
  return request({
    url: '/api/pay/order?order_sn=' + data.order_sn,
    method: 'GET',
  })
}

export function wxpaystatus(data) {
  return request({
    url: '/api/payment/wxpaystatus',
    method: 'GET',
    data,
  })
}

// 店铺支付设置
export function sysPaymentList() {
  return request({
    url: '/api/sys_payment_list',
    method: 'POST',
  })
}
// 店铺支付设置
export function sysPaymentAdd(data) {
  return request({
    url: '/api/sys_payment_add',
    method: 'POST',
    data,
  })
}
// 店铺支付设置

export function sysPaymentDel(data) {
  return request({
    url: '/api/sys_payment_del',
    method: 'POST',
    data,
  })
}

export function uploadCert(data) {
  return request({
    url: '/api/upload_cert',
    method: 'POST',
    data,
  })
}
